import resolve from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import { terser } from "rollup-plugin-terser";

import spa from './rollup-plugin-spa.js';

export default {
    input: './js/app.js',
    output: {
        file: './dest/bundle.js',
        format: 'cjs',
    },
    plugins: [resolve(), commonjs(), terser(), spa()]
};